<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1><a href="https:www.baidu.com" id="baidu">百度</a></h1>
<h1><span id="msg" style="display: none;color: blue">百度一下你就知道</span></h1>
<script>
    let b = document.getElementById("baidu");
    b.onmouseover = function () {
        document.getElementById("msg").style.display='';
    }
    b.onmouseout = function () {
        document.getElementById("msg").style.display='none';
    }
</script>
</body>
</html>